<template>
<div><p>message的值{{message}}</p>
    <p>obj.message的值:{{obj.message}}</p>    
</div>
 </template>

<script setup>
import { reactive,toRef } from 'vue'

const obj = reactive({message:'hello world'})
const message = toRef(obj,'message')
setTimeout(()=>{
    console.log('之前的信息'+obj.message);
    message.value = 'hello vue'
     console.log('之后的信息'+obj.message);
},1000);

</script>